[html] view plain copy <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </dependency> project增加
[html] view plain copy <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <!--fork : 如果没有该项配置,肯呢个devtools不会起作用,即应用不会restart --> <span style="white-space:pre"> </span><fork>true</fork> </configuration> </plugin> </plugins> </build> idea设置
ctrl+shift+alt+/
重启项目即可。